
public class testapp {
	
	class HashTest {
		public int a, b, c;
		public String str;
		
		public HashTest(int pA, int pB, int pC, String pStr){
			a = pA;
			b = pB;
			c = pC;
			str = pStr;
		}
	}
	
	public static void main(String[] args)
	{
		testapp p1 = new testapp();
		
		HashTest h1 = p1.new HashTest(1, 2, 3, "eins");
		HashTest h2 = p1.new HashTest(4, 5, 6, "zwei");
		HashTest h11 = p1.new HashTest(1, 2, 3, "eins");
		
		System.out.println("h1 <-> h2  = " + (h1.hashCode() == h2.hashCode()) + "\nh1 <-> h11 = " +  (h1.hashCode() == h11.hashCode()));
	}
}
